package sr.codemg.vm;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class Menus {

    private String title;
    private String key;
    private String icon;
    private String id;
    private List<Menus> children;

    public Menus() {
    }

    public Menus(String title, String key, String icon, String id) {
        this.title = title;
        if (key == null || "-".equals(key)) {
            this.key = id;
        } else {
            this.key = key;
        }
        this.icon = icon;
        this.id = id;
    }
}
